<template>
  <div>
    <van-card
      v-for="(item, index) in houseList"
      :key="index"
      :price="`${item.price}元/月`"
      :desc="item.desc"
      :title="item.title"
      :thumb="`http://liufusong.top:8080${item.houseImg}`"
      @click="
        $router.push({ name: 'xiangqing', params: { id: item.houseCode } })
      "
    >
      <template #tags>
        <van-tag plain type="success">{{ item.tags[0] }}</van-tag>
      </template>
    </van-card>
  </div>
</template>

<script>
export default {
  props: {
    houseList: {
      type: Array,
      default: () => {
        return [];
      },
    },
  },
};
</script>

<style></style>
